import App from './App.vue'

import mixin from './common/mixin'

import Vue from 'vue'
Vue.config.productionTip = false
    // Vue.prototype.$host = host;
App.mpType = 'app'

Vue.mixin(mixin)

// 步骤一：引入SDK
import dhtrack from '@/util/dhtrack_wx.js'
// 步骤二：创建埋点应用
dhtrack.setParams({
        tenantId: 'TEST', // 企业id
        appId: 'TEST', // 应用id
        terminal: 'WX-MINIAPP' // 终端id
    }).init({
        serveUrl: 'https://demobank.szdinghui.com/testbank', //上报地址
        publicKey: '044448c4feb37de2589455c04e7d434ae3ba0ce134f5d31c037715493991ea45e3ce5c8e3fbc6e13f4b5f51f883574ff2dcc5b6a4693e3ac2c2aa6cfcfc01bdece', // 加密秘钥
        privateKey: '1c03f7492792ad6c0d740e8bd9dc49101b4dbee92dac548530ca3d707ec17338',
        debugger: true, // 是否开启调试模式
    })
    // 步骤三：全局暴露dhtrack
Vue.prototype.$dhtrack = dhtrack



const app = new Vue({
    ...App
})
app.$mount()